<script setup lang="ts">
import { ref } from 'vue'

const money = ref(0)
const handler = ($parent) => {
  console.log('xxx', $parent)
}
defineExpose({
  money,
  handler,
})
</script>

<template>
  <div @click="handler($parent)">点我获取爹</div>
</template>

<style scoped></style>
